package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author tune_the last
 * @date 2025/11/7 - 9:29
 */
public class TestDBConnect {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        DBConnect dbConnect = context.getBean(DBConnect.class);
        System.out.println("4.开发者使用阶段");
        context.close();
    }
}
